Cytosim  PI
Cytoskeleton Simulator
gle_color_float Class Reference

Public Member Functions

 gle_color_float (uint32_t s)
 
 gle_color_float (GLfloat r, GLfloat g, GLfloat b, GLfloat a)
 
void set_rgbaf (GLfloat r, GLfloat g, GLfloat b, GLfloat a)
 
void set_rgba (GLubyte r, GLubyte g, GLubyte b, GLubyte a)
 
void set_white ()
 
void set_black ()
 
bool operator== (gle_color_float col)
 
GLubyte red () const
 
GLubyte green () const
 
GLubyte blue () const
 
GLubyte alpha () const
 
GLfloat redf () const
 
GLfloat greenf () const
 
GLfloat bluef () const
 
GLfloat alphaf () const
 
GLfloat brightness () const
 
bool opaque () const
 
bool transparent () const
 
bool visible () const
 
gle_color_float fade (GLubyte s) const
 
gle_color_float fade_alpha (GLubyte s) const
 
gle_color_float set_alpha (GLubyte s) const
 
gle_color_float match_alpha (gle_color_float col) const
 
gle_color_float mix (gle_color_float x) const
 
void color () const
 set current OpenGL color by calling glColor
 
void colorT () const
 set current color, but divide alpha = 0.5
 
void colorT (short s) const
 set current color, but divide alpha component by 2^s
 
void colorA (GLfloat s) const
 set current color, but with s as alpha component
 
void clearColor () const
 
void front () const
 set FRONT material property for lighting
 
void back () const
 set BACK material property for lighting
 
std::string str () const
 conversion to string